package com.foreknow.elmboot.service;

import com.foreknow.elmboot.mapper.UserMapper;
import com.foreknow.elmboot.po.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


public interface UserService {

    /**
     * 登录
     * @param userId
     * @param password
     * @return
     */
    public User getUserByIdByPass(String userId, String password);

    /**
     * 注册
     * @param user
     * @return int
     */
    public int saveUser(User user);

}
